package com.framework.loippi.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.framework.loippi.dao.CategoryDao;
import com.framework.loippi.entity.Category;
import com.framework.loippi.service.CategoryService;
import java.util.List;
/**
 * SERVICE - Category(药品分类表)
 * 
 * @author wmj
 * @version 2.0
 */
@Service
public class CategoryServiceImpl extends GenericServiceImpl<Category, Long> implements CategoryService {
	
	@Autowired
	private CategoryDao categoryDao;
	
	
	@Autowired
	public void setGenericDao() {
		super.setGenericDao(categoryDao);
	}

	public List<Category> findListByPage(Object parameter){
		return categoryDao.findListByPage(parameter);
	}

	public Long deletes(Object parameter){
		return categoryDao.deletes( parameter);
	}

	@Override
	public List<Category> findAllCategory() {
		return categoryDao.findAllCategory();
	}


}
